<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <div th:replace="admin/head :: head"></div>

    <title>视频表单</title>
</head>
<body>
<div class="x-body layui-anim layui-anim-up">
    <form class="layui-form">
        <input type="hidden" name="id" th:value="${workOrder?.id}"/>

        <div class="layui-form-item">
            <label for="L_name" class="layui-form-label">
                名称
            </label>
            <div class="layui-input-inline">
                <input type="text" id="L_name" name="personName" required="" autocomplete="off"
                       class="layui-input" th:value="${workOrder?.personName}">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="L_personPhone" class="layui-form-label">
                电话
            </label>
            <div class="layui-input-inline">
                <input type="text" id="L_personPhone" name="personPhone" required="" autocomplete="off"
                       class="layui-input" th:value="${workOrder?.personPhone}">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="L_personWechat" class="layui-form-label">
                微信
            </label>
            <div class="layui-input-inline">
                <input type="text" id="L_personWechat" name="personWechat" required="" autocomplete="off"
                       class="layui-input" th:value="${workOrder?.personWechat}">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="L_personExpect" class="layui-form-label">
                期望
            </label>
            <div class="layui-input-inline" style="width: 50%;">
                <textarea type="text" class="layui-input" id="L_personExpect" name="personExpect">[[${workOrder?.personExpect}]]</textarea>
            </div>
        </div>

        <!--<div class="layui-form-item">
            <button class="layui-btn" lay-filter="add" lay-submit="">
                保存
            </button>
        </div>-->
    </form>
</div>

<script>
    layui.use(['form', 'layer', 'upload'], function () {
        $ = layui.jquery;
        var form = layui.form;

        //自定义验证规则
        form.verify({

        });

        //监听提交
        form.on('submit(add)', function (data) {

            return false;
        });
    });
</script>

</body>
</html>